package com.demo.consumer.config;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author A
 */
@Component
public class MyListener {

    @RabbitListener(queues = "item_queue")
    public void myListener(String message) {
        System.out.println("消费者接受到的消息：" + message);
    }
}
